package eip.chapter4.invalidmessage;

import java.util.Date;

public class HotelSearchMessage {

	private String country;
	private String city;
	private Date arrivalDate;
	private Date departureDate;
	
	public HotelSearchMessage() {
		
	}
	
	public HotelSearchMessage(String country, String city, Date arrivalDate, Date departureDate) {
		super();
		this.country = country;
		this.city = city;
		this.arrivalDate = arrivalDate;
		this.departureDate = departureDate;
	}
	
	public Date getArrivalDate() {
		return arrivalDate;
	}
	
	public void setArrivalDate(Date arrivalDate) {
		this.arrivalDate = arrivalDate;
	}
	
	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}
	
	public String getCountry() {
		return country;
	}
	
	public void setCountry(String country) {
		this.country = country;
	}
	
	public Date getDepartureDate() {
		return departureDate;
	}
	
	public void setDepartureDate(Date departureDate) {
		this.departureDate = departureDate;
	}

	/**
	 * Constructs a <code>String</code> with all attributes
	 * in name = value format.
	 *
	 * @return a <code>String</code> representation 
	 * of this object.
	 */
	public String toString()
	{
	    final String TAB = "    ";
	    
	    String retValue = "";
	    
	    retValue = "HotelSearchMessage ( "
	        + super.toString() + TAB
	        + "country = " + this.country + TAB
	        + "city = " + this.city + TAB
	        + "arrivalDate = " + this.arrivalDate + TAB
	        + "departureDate = " + this.departureDate + TAB
	        + " )";
	    
	    return retValue;
	}
}